Quarto Workshop
Formatting
- Formatting yaml
- Creating sections
- Commenting-out text
- End with rpubs
Formulas
- Math mode
\[ \widehat{ATE} = \overline{Y}_{treatment\_group} - \overline{Y}_{control\_group} \]
Code Chunks
Figures
Check out Figure 1
Tables
| Descriptive Table of Random Data | ||
| Summary statistics: Mean and Standard Deviation | ||
| Variable | Mean | SD |
|---|---|---|
| x | 0.5200910 | 0.2942882 |
| y | 0.4770270 | 0.2766775 |
| size | 5.6385087 | 2.6461582 |
| color | 0.5130599 | 0.2326477 |
Inline Code
Use code within the text to describe your data (n = 50) for a more reproducible workflow.
Python
You’ll need Python installed
```{python}
#| echo: false #| warning: false
import matplotlib.pyplot as plt import numpy as np
Generate random data
np.random.seed(0) x = np.random.rand(50) y = np.random.rand(50) colors = np.random.rand(50) area = (30 * np.random.rand(50))**2 # Bubble sizes
Create scatterplot
plt.scatter(x, y, s=area, c=colors, alpha=0.5) plt.title(‘Random Scatterplot’) plt.xlabel(‘X’) plt.ylabel(‘Y’) plt.show()
```
Using References
Cite cool work by outstanding scholars (Springman 2022) and automatically generate a references list.
References
Springman, Jeremy. 2022. “The Political Economy of NGO Service Provision: Evidence from an Ancillary Field Experiment in Uganda.” World Politics 74 (4): 523–63.